﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using automobili_data.interfaces;
using automobili_data;

namespace automobili_gui.Ulogovan_korisnik
{
    public partial class Profil : System.Web.UI.Page
    {

        protected void Page_Load (object sender, EventArgs e)
        {
            Privilegije p = SessionUtils.getCurrentPrivileges();
            User k = SessionUtils.getCurrentUser();
            if (p.ProfilPromena_k == 1) { 
                 IList<User> profil = AutomobiliDataManager.instance.dohvatiProfil(k.UserId);

                        GridView1.DataSource = profil;

                        GridView1.DataBind();
            }
        }
        
       
    }
}